package com.qys.livesMall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qys.livesMall.product.entity.H2ProductSkuAttribute;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gmx
 * @since 2023-05-17
 */
public interface H2ProductSkuAttributeService extends IService<H2ProductSkuAttribute> {

    //根据分类ID查询属性集合
    List<H2ProductSkuAttribute> queryList(Long id);

    String getSkuName(String attr);

    /**
     * 根据spu获取属性
     * @param spuId
     * @return
     */
    List<H2ProductSkuAttribute>  getBySpuId(Long spuId);
}
